#include "SMPPBroadcastContentType.hpp"

using namespace smpp::pdu;

BroadcastContentType::BroadcastContentType(
const octetString &nValue):
TLV(TLVtags::TAG_BROADCAST_CONTENT_TYPE,nValue.size()),
_Value(nValue){}

BroadcastContentType::BroadcastContentType(
const BroadcastContentType &nBroadcastContentType):
TLV(nBroadcastContentType),
_Value(nBroadcastContentType.getValue()){}

bool BroadcastContentType::operator ==(
	const BroadcastContentType &nBroadcastContentType) const{
	return (TLV::operator == (nBroadcastContentType) && 
	_Value == nBroadcastContentType.getValue());
}

bool BroadcastContentType::operator !=(
	const BroadcastContentType &nBroadcastContentType) const{
	return !this->operator == (nBroadcastContentType);
}

BroadcastContentType &BroadcastContentType::operator = (
	const BroadcastContentType &nBroadcastContentType){
	if(*this == nBroadcastContentType)
		return *this;
	TLV::operator = (nBroadcastContentType);
	_Value = nBroadcastContentType.getValue();
	return *this;
}

void BroadcastContentType::setValue(const octetString &nValue){
	_Value = nValue;
}

const octetString &BroadcastContentType::getValue() const{
	return _Value;
}
